package homework.homework3;

public class Student {
    private static Student student=new Student();
    String name;
    int year;
    String sex;

    private Student() {
    }

    private Student(String name, int year, String sex) {
        this.name = name;
        this.year = year;
        this.sex = sex;
    }

    public static Student getInstance(){
        return student;
    }
}

